package com.lb.sentinelproject.config;

import com.alibaba.csp.sentinel.adapter.servlet.callback.WebCallbackManager;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @version 1.0
 * @Author: Edward
 * @Date: 2021/1/21 15:21
 * @Description:
 */
@Configuration
public class SentinelConfiguration {
    @PostConstruct
    public void init() {
        WebCallbackManager.setRequestOriginParser(new RequestOriginParserDefinition());
    }
}
